package com.young.common.exception;

/**
 * 参数异常
 */
public class ParamException extends BaseException {

    public static final int ERROR_CODE = -801;//错误码

    public ParamException() {
        super();
        this.setCode(ERROR_CODE);
    }
    public ParamException(Throwable cause) {
        super(cause);
        this.setCode(ERROR_CODE);
    }
    public ParamException(String info) {
        super(ERROR_CODE, info);
    }
    public ParamException(String info, String detail) {
        super(ERROR_CODE, info, detail);
    }

    public ParamException(String info, Throwable throwable) {
        super(info, throwable);
        this.setCode(ERROR_CODE);
    }

}
